package com.erhirent.view;

import java.util.Scanner;

import com.erhirent.biz.ICarBiz;
import com.erhirent.biz.IUserBiz;
import com.erhirent.bizimpl.CarBizImpl;
import com.erhirent.bizimpl.UsersBizImpl;

public abstract class View {
	protected View mView;
	protected Scanner mScanner;

	ICarBiz mcar;
	IUserBiz muser;

	public abstract View showView();

	public View() {
		if (mScanner == null) {
			mScanner = new Scanner(System.in);
		}
		mcar = new CarBizImpl();
		muser = new UsersBizImpl();
	}

	public void destroyScanner() {
		if (mScanner != null) {
			mScanner.close();
		}
	}

}